import { getToken } from '~/utils/wechat'

export default defineEventHandler(async (event) => {
  const token = await getToken(event.context.cloudflare.env);
  return token
})
